package com.lyj.dao;

import com.lyj.entity.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by lyj on 2018/11/15.
 */
public interface UserMapper {

    @Select("select * from t_user where username = #{username}")
    User getByUserName(String username);

    @Select("select * from t_user")
    List<User> findAll();

}
